﻿<%@ Page Title="Emerald - Member list" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="MemberList.aspx.cs" Inherits="MemberList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <h3>Member list</h3>
    <div class="contentarea">
        <p>
            <asp:GridView ID="UserGridView" runat="server" AllowPaging="True" AllowSorting="True"
                AutoGenerateColumns="False" DataSourceID="UserObjectDataSource">
                <Columns>
                    <asp:BoundField DataField="Username" HeaderText="Username" SortExpression="Username" />
                    <asp:BoundField DataField="CreationDate" HeaderText="CreationDate" SortExpression="CreationDate" />
                    <asp:BoundField DataField="LastActivityDate" HeaderText="LastActivityDate" SortExpression="LastActivityDate" />
                    <asp:CheckBoxField DataField="IsOnline" HeaderText="IsOnline" SortExpression="IsOnline" />
                    <asp:BoundField DataField="NumberOfPosts" HeaderText="NumberOfPosts" ReadOnly="True"
                        SortExpression="NumberOfPosts" />
                </Columns>
            </asp:GridView>
            <asp:ObjectDataSource ID="UserObjectDataSource" runat="server" EnablePaging="True"
                OldValuesParameterFormatString="original_{0}" SelectCountMethod="Count" SelectMethod="SelectAll"
                SortParameterName="sortExpression" TypeName="Emerald.Business.Controllers.UserController">
            </asp:ObjectDataSource>
            
        </p>
    </div>
</asp:Content>
